from flask import Flask
from flask_cors import CORS
app = Flask(__name__)


@app.route('/')
def hello_world():  # put application's code here
    return 'Hello World!'


from data_statistics import data_statistics_bp
from prediction import prediction_bp
from web_spider import spider_bp
app.register_blueprint(data_statistics_bp)
app.register_blueprint(prediction_bp)
app.register_blueprint(spider_bp)
CORS(app,resources=r'/*')
if __name__ == '__main__':
    app.run()
